package net.hn.hnms.biz.safety.monitor.domain;

import lombok.Data;

import javax.persistence.*;
import java.util.Objects;

/**
 * 智呈物联 pan'sx
 * 2022/8/30 15:01
 * 1.0 version
 */
@Entity
@Table(name = "aqjk_dict", schema = "aqjk", catalog = "huaneng-safety")
@Data
public class AqjkDictEntity {
    private String pointLoactionName;
    private String simpleName;
    private String type;
    @Id
    private Integer id;

    @Column(name = "point_loaction_name")
    public String getPointLoactionName() {
        return pointLoactionName;
    }

    public void setPointLoactionName(String pointLoactionName) {
        this.pointLoactionName = pointLoactionName;
    }

    @Basic
    @Column(name = "simple_name")
    public String getSimpleName() {
        return simpleName;
    }

    public void setSimpleName(String simpleName) {
        this.simpleName = simpleName;
    }


    @Column(name = "type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AqjkDictEntity that = (AqjkDictEntity) o;
        return Objects.equals(pointLoactionName, that.pointLoactionName) &&
                Objects.equals(simpleName, that.simpleName) &&
                Objects.equals(type, that.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(pointLoactionName, simpleName, type);
    }
}
